﻿// Copyright (C) 2016 by Barend Erasmus and donated to the public domain

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace OpenHttpServer.Models
{

    public enum HttpMethods
    {
        GET,//查
        POST,//改
        PUT,//增
        DELETE,//删
        OTHER =0
    }
    public class Route
    {
        public string Name { get; set; } // descriptive name for debugging
        public string UrlRegex { get; set; }
        public HttpMethods Method { get; set; }
        public Func<HttpRequest, HttpResponse> Callable { get; set; }
    }
}
